Toward Opaque Typedefs for C++1Y
نویسنده
چکیده
Although this paper is self-contained, it logically follows our discussion, begun several years ago in N1706 and continued in N1891, of a feature oft-requested for C++: an opaque typedef , sometimes termed a strong typedef . The earlier of those works was presented to WG21 on 2004-10-20 during the Redmond meeting, and the later work was presented during the Berlin meeting on 2005-04-06. Both presentations resulted in very strong encouragement to continue development of such a language feature.1 Alas, the press of other obligations has until recently not permitted us to resume our explorations.
منابع مشابه
Progress toward Opaque Typedefs for C++0X
This paper continues the discussion begun in N1706 [Bro04]. That paper presented introductory rationale, exposition, and examples as a preliminary exploration on the subject of an opaque typedef . In particular, we envisioned to combine the classical typedef with the C++ concepts of public and private inheritance, thereby producing two new constructs that would jointly address the oft-requested...
متن کاملFloating-Point Typedefs Having Specified Widths - N3626
It is proposed to add to the C++ standard optional floating-point typedefs having specified widths. The optional typedefs include float16_t, float32_t, float64_t, float128_t, their corresponding least and fast types, and the corresponding maximumwidth type. These are to conform with the corresponding specifications of binary16, binary32, binary64, and binary128 in IEEE_ floating-point format. T...
متن کاملFloating-Point Typedefs Having Specified Widths - N1703
It is proposed to add to the C++ standard optional floating-point typedefs having specified widths. The optional typedefs include float16_t, float32_t, float64_t, float128_t, their corresponding least and fast types, and the corresponding maximumwidth type. These are to conform with the corresponding specifications of binary16, binary32, binary64, and binary128 in IEEE_ floating-point format. T...
متن کاملProposing a C++1Y Swap Operator, v2
We propose a new swap operator on native types for incorporation into the C++1Y core language. For user-defined types, we propose that this new operator be treated as a special member function, and that, when viable, its presence provide an alternative to traditional memberwise implementation of defaulted assignment semantics.
متن کامل